package com.rd.student.jiaji.class3.caiyuxin;

import java.util.LinkedList;
import java.util.Random;

public class Suijitest {
    public static void main(String[] args) {
        Random random=new Random();
        LinkedList max=new LinkedList();
        LinkedList all=new LinkedList();


        for(int i=0;i<10;i++){
            int a=random.nextInt(101);
            all.add(a);
            if (a>=10){
                max.add(a);
            }
        }
        System.out.println("所有的数为：");
        System.out.println(all);
        System.out.println("大于10的数为：");
        System.out.println(max);

    }
}